package com.nebula.api.modules.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 用户会员表 积分商城用户
 * </p>
 *
 * @author ChanlunLee
 * @since 2022-10-10
 */
public class CmfMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联到用户表的user_no字段
     */
    private Long userNo;

    private String username;

    /**
     * 昵称
     */
    private String nickName;

    private String password;

    private String salt;

    private String phone;

    private String address;

    /**
     * 头像
     */
    private String headImg;

    private LocalDateTime birthday;

    private String email;

    private String sex;

    private Long crmId;

    private Long wechatId;

    private Long qqId;

    private Long weiboId;

    private String lastIp;

    private LocalDateTime lastLogin;

    private LocalDateTime createTime;

    /**
     * 用户状态
     */
    private Integer status;

    /**
     * 当前用户积分
     */
    private Long coin;

    private Integer userGroup;

    private String remark;

    private String extraField;

    private Integer tryLoginTimes;

    /**
     * 唯一身份标志
     */
    private String uuid;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 身份证号码
     */
    private String idCard;

    /**
     * 微信的code,用户获取openid的code
     */
    private String wechatCode;

    /**
     * 积分操作版本
     */
    private String currentCoinVersion;

    /**
     * 推荐码
     */
    private String recommendCode;

    /**
     * 加入时间
     */
    private LocalDateTime addTime;

    /**
     * 内容员工ID
     */
    private Long employeeId;

    /**
     * 是否是内部员工 如果是1就是内部员工
     */
    private Integer staff;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserNo() {
        return userNo;
    }

    public void setUserNo(Long userNo) {
        this.userNo = userNo;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Long getCrmId() {
        return crmId;
    }

    public void setCrmId(Long crmId) {
        this.crmId = crmId;
    }

    public Long getWechatId() {
        return wechatId;
    }

    public void setWechatId(Long wechatId) {
        this.wechatId = wechatId;
    }

    public Long getQqId() {
        return qqId;
    }

    public void setQqId(Long qqId) {
        this.qqId = qqId;
    }

    public Long getWeiboId() {
        return weiboId;
    }

    public void setWeiboId(Long weiboId) {
        this.weiboId = weiboId;
    }

    public String getLastIp() {
        return lastIp;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp;
    }

    public LocalDateTime getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(LocalDateTime lastLogin) {
        this.lastLogin = lastLogin;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCoin() {
        return coin;
    }

    public void setCoin(Long coin) {
        this.coin = coin;
    }

    public Integer getUserGroup() {
        return userGroup;
    }

    public void setUserGroup(Integer userGroup) {
        this.userGroup = userGroup;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getExtraField() {
        return extraField;
    }

    public void setExtraField(String extraField) {
        this.extraField = extraField;
    }

    public Integer getTryLoginTimes() {
        return tryLoginTimes;
    }

    public void setTryLoginTimes(Integer tryLoginTimes) {
        this.tryLoginTimes = tryLoginTimes;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getWechatCode() {
        return wechatCode;
    }

    public void setWechatCode(String wechatCode) {
        this.wechatCode = wechatCode;
    }

    public String getCurrentCoinVersion() {
        return currentCoinVersion;
    }

    public void setCurrentCoinVersion(String currentCoinVersion) {
        this.currentCoinVersion = currentCoinVersion;
    }

    public String getRecommendCode() {
        return recommendCode;
    }

    public void setRecommendCode(String recommendCode) {
        this.recommendCode = recommendCode;
    }

    public LocalDateTime getAddTime() {
        return addTime;
    }

    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public Integer getStaff() {
        return staff;
    }

    public void setStaff(Integer staff) {
        this.staff = staff;
    }

    @Override
    public String toString() {
        return "CmfMember{" +
                "id=" + id +
                ", userNo=" + userNo +
                ", username=" + username +
                ", nickName=" + nickName +
                ", password=" + password +
                ", salt=" + salt +
                ", phone=" + phone +
                ", address=" + address +
                ", headImg=" + headImg +
                ", birthday=" + birthday +
                ", email=" + email +
                ", sex=" + sex +
                ", crmId=" + crmId +
                ", wechatId=" + wechatId +
                ", qqId=" + qqId +
                ", weiboId=" + weiboId +
                ", lastIp=" + lastIp +
                ", lastLogin=" + lastLogin +
                ", createTime=" + createTime +
                ", status=" + status +
                ", coin=" + coin +
                ", userGroup=" + userGroup +
                ", remark=" + remark +
                ", extraField=" + extraField +
                ", tryLoginTimes=" + tryLoginTimes +
                ", uuid=" + uuid +
                ", age=" + age +
                ", idCard=" + idCard +
                ", wechatCode=" + wechatCode +
                ", currentCoinVersion=" + currentCoinVersion +
                ", recommendCode=" + recommendCode +
                ", addTime=" + addTime +
                ", employeeId=" + employeeId +
                ", staff=" + staff +
                "}";
    }
}
